/**
 * 外部全局消息接收
 **/
(function () {
  'use strict'
  window.onmessage = function (messageEvent) {
    Utils.log.info('ctp receive post message info ' + JSON.stringify(messageEvent.data))
    var message = messageEvent.data
    if (!message) {
      return
    }
    window.globalUserData.postMessageHandler(message)
  }
}())
